﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace DHAA.Areas.Administrator.Models
{
    public class ProductModels
    {
        [Required(ErrorMessage = "Product ID cannot be empty")]
        [DisplayName("Product ID")]
        public int ProductID { get; set; } 

        [Required(ErrorMessage = "Category ID cannot be empty")]
        [DisplayName("Category ID")]
        public int CategoryID { get; set; } 

        [Required(ErrorMessage = "Product's name cannot be empty")]
        [DisplayName("Product's name")]
        public string ProductName { get; set; }

        [Required(ErrorMessage = "Image cannot be empty")]
        [DisplayName("Image")]
        public string ProductImage { get; set; }

        [Required(ErrorMessage = "Price cannot be empty")]
        [DisplayName("Price")]
        public double Price { get; set; }

        [Required(ErrorMessage = "Category ID cannot be empty")]
        [DisplayName("Description")]
        public string Description { get; set; }

        [Required(ErrorMessage = "Category ID cannot be empty")]
        [DisplayName("Feed ID")]
        public int? FeedBackID { get; set; }

     
        [DisplayName("Category Name")]
        public string CategoryName { get; set; }


    }
}
